package com.ie.mapper.admin;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ie.entity.FocusEntity;
import com.ie.entity.GoodsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @classname: GoodsMapper
 * @Author: S2
 * @Description: //TODO
 * @Date: 2025/5/12  14:39
 * @Param:
 * @version: 1.0
 **/
@Repository
public interface GoodsMapper extends BaseMapper<GoodsEntity> {
    IPage<GoodsEntity> iPageGoods(IPage<GoodsEntity> page, @Param(Constants.WRAPPER) LambdaQueryWrapper<GoodsEntity> wrapper);

    List<Map<String, Object>> myCartGoods(int uid);

    IPage<GoodsEntity> iPageMyFocusGoods(IPage<GoodsEntity> pgae, @Param(Constants.WRAPPER) LambdaQueryWrapper<FocusEntity> wrapper);
}
